package com.inoneone.youba.mcht.dto;

import java.io.Serializable;
import java.util.List;

public class PageRsp<T> implements Serializable {
    private static final long serialVersionUID = 3846760713397359167L;

    /**
     * 总页数
     */
    private Long totalCount;

    /**
     * 每页条数
     */
    private int pageSize;

    /**
     * 当前页码，从1开始
     */
    private int pageNum;

    /**
     * 结果数据
     */
    private List<T> resultList;

    public PageRsp(Long totalCount, int pageSize, int pageNum, List<T> resultList) {
        this.totalCount = totalCount;
        this.pageSize = pageSize;
        this.pageNum = pageNum;
        this.resultList = resultList;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public List<T> getResultList() {
        return resultList;
    }

    public void setResultList(List<T> resultList) {
        this.resultList = resultList;
    }
}
